<?php
class RBAC {
	
	protected $conn;
	protected $usuario;
	
	public function __construc($user, $pass){
		
		// incluyo la configuración
		require 'config.php';
		
		// Creo la conexión
		$this->conn = new PDO(DB_DSN.':dbname='.DB_NAME, 
				DB_ROL, DB_PASS);
		
		$this->loguear($user, $pass);
	}
	
	protected function loguear ($user, $pass){
		
		$this->usuario = new Usuario\Usuario($this->conn, $user, $pass);
		
	}
}